#define _CRT_SECURE_NO_WARNINGS 1
#include"stack.h"
namespace zkf
{
	void test1()
	{
		stack<int> s1;
		s1.push(1);
		s1.push(2);
		s1.push(3);
		s1.push(4);
		s1.push(5);
		s1.push(6);
		for (size_t i = 0; i < s1.size(); i++)
		{
			cout << s1[i] << " ";
		}
		cout << endl;
		s1.pop(); 
		for (size_t i = 0; i < s1.size(); i++)
		{
			cout << s1[i] << " ";
		}
		cout << endl;
		cout << s1.top();
	}
}
int main()
{
	zkf::test1();
	return 0;
}